<script>
import { reqPost } from "./common/http.request";
import {
  uGetStorageSync,
  uNavigateTo,
  uRedirectTo,
  uSetStorageSync,
} from "./utils/uniUtils";
import { useUser } from "./store/useUser";
export default {
  methods: {},

  onLaunch: async function (opt) {
    console.log("onLaunch", opt);
    if (opt.query.scene && opt.path == "pages/tab_bar/index") {
      const scene = opt.query.scene;
      uNavigateTo(`/pages/member/VipBind?scene=${scene}`);
      return;
    }
    /*   if (!uGetStorageSync("hasBindStore")) {
      uRedirectTo("/pages/member/NotBind");
    } */

    // await useUser().appLogin();

    // }
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style lang="scss">
/*每个页面公共css */
@import "static/css/iconfont.css";
@import "@/uni_modules/uview-ui/index.scss";
@import "static/css/contentmixin.scss";
// @import 'static/css/iconfont-weapp-icon.css';
// @import 'static/css/flex.css';
uni-page-body,
page {
  background-color: #efeff4;
  //   background-color: #f5f5f5;
  // font-size: 24upx;
}
</style>
